import request from '@/utils/request'
const moduleApi = ''

// 创建优惠券礼包
export function addCouponPackApi(data) {
  return request({
    url: moduleApi + `/operation/marCouponPack`,
    method: 'post',
    data
  })
}
// 查询选择优惠券列表
export function getCouponListApi(params) {
  return request({
    url: moduleApi + `/operation/marCouponPack/list/coupon`,
    method: 'get',
    params
  })
}
// 查询优惠券礼包列表
export function getCouponPackListApi(params) {
  return request({
    url: moduleApi + `/operation/marCouponPack`,
    method: 'get',
    params
  })
}
// 查询优惠券礼包活动详情
export function getCouponPackDetailApi(id) {
  return request({
    url: moduleApi + `/operation/marCouponPack/${id}`,
    method: 'get'
  })
}
// 更新优惠券礼包活动状态
export function updateCouponPackStatusApi(data) {
  return request({
    url: moduleApi + `/operation/marCouponPack/status`,
    method: 'put',
    data
  })
}
// 查询优惠券礼包详情列表
export function getCouponPackDetailListApi(id) {
  return request({
    url: moduleApi + `/operation/marCouponPack/list/pack-detail/${id}`,
    method: 'get'
  })
}
// 查询已领取用户列表
export function getAlreadyReceivedListApi(params) {
  return request({
    url: moduleApi + `/operation/marCouponPack/list/receive-user`,
    method: 'get',
    params
  })
}
